package com.examlpe.cels.util;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

import com.examlpe.cels.entity.Vocabulary;

public class PageBean {
	private List<Vocabulary>datas;
	private int pageSize;
	private int first=1;
	private int last;
	private int previous;
	private int next;
	private int current;
	private int pages;
	private int total;
	private String style;
	public PageBean(Set<Vocabulary> datas,int pageSize) {
		this.datas = new ArrayList<Vocabulary>(datas);
		this.pageSize = pageSize;
	}
	
	public List<Vocabulary> getDatas() {
		return datas;
	}

	
	public PageBean(int previous, int next) {
		super();
		this.previous = previous;
		this.next = next;
	}

	public void setDatas(List<Vocabulary> datas) {
		this.datas = datas;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getFirst() {
		return first;
	}

	public void setFirst(int first) {
		this.first = first;
	}

	public int getLast() {
		return last;
	}

	public void setLast(int last) {
		this.last = last;
	}

	public int getCurrent() {
		return current;
	}

	public void setCurrent(int current) {
		this.current = current;
	}

	public int getPages() {
		return pages;
	}

	public void setPages(int pages) {
		this.pages = pages;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public String getStyle() {
		return style;
	}

	public void setStyle(String style) {
		this.style = style;
	}

	
	public int getPrevious() {
		return previous;
	}

	public void setPrevious(int previous) {
		this.previous = previous;
	}

	public int getNext() {
		return next;
	}

	public void setNext(int next) {
		this.next = next;
	}

	@Override
	public String toString() {
		return "PageBean [datas=" + datas + ", pageSize=" + pageSize + ", first=" + first + ", last=" + last
				+ ", current=" + current + ", pages=" + pages + ", total=" + total + ", style=" + style + "]";
	}
	
	
}
